package com.bwie.shop.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bwie.common.utils.PageUtils;
import com.bwie.common.utils.Query;

import com.bwie.shop.dao.ActiveDao;
import com.bwie.shop.entity.ActiveEntity;
import com.bwie.shop.service.ActiveService;


@Service("activeService")
public class ActiveServiceImpl extends ServiceImpl<ActiveDao, ActiveEntity> implements ActiveService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<ActiveEntity> page = this.page(
                new Query<ActiveEntity>().getPage(params),
                new QueryWrapper<ActiveEntity>()
        );

        return new PageUtils(page);
    }

}